package com.xy.service.impl;

import com.xy.dao.RolePermsDao;
import com.xy.model.RoleAndPerms;
import com.xy.service.RolePermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class RolePermissionServiceImpl implements RolePermissionService {
    @Autowired
    RolePermsDao rolePermsDao;
    public int addRolePerms(RoleAndPerms roleAndPerms) {
        return rolePermsDao.addRolePerms(roleAndPerms);
    }

    public int delRolePerms(Integer roleId, Integer permsId) {
        return rolePermsDao.delRolePerms(roleId,permsId);
    }
}
